#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
int gcd(int x, int y)
{
    int z = y;
    while (x % y != 0)
    {
        z = x % y;
        x = y;
        y = z;
    }
    return z;
}

int main()
{
    long ssr[3], sum = 0;
    cin >> ssr[0] >> ssr[1] >> ssr[2];
    sort(ssr, ssr + 3);
    printf("%ld/%ld", ssr[0] / gcd(ssr[0], ssr[2]), ssr[2] / gcd(ssr[0], ssr[2]));
}